def sum1(n):
    sum=0
    if n%2 == 0: k = n
    else: k = n+1
    for i in range(2,k+2,2):
        sum += i**i
    return sum


n=int(input())

result=sum1(n)

print(result)
